package com.newegg.datafeed.adserving.domain;

import java.util.Date;
import com.newegg.datafeed.adserving.model.Account;

/**
 * 用户表 
 */
public class User extends Account{
	private static final long serialVersionUID = -6940888814806809194L;

	/* 用户名称 */
	private String username;

	/* 用户昵称 */
	private String nickname;

	/* 所属公司ID */
	private Integer company;

	/* 密码 */
	private String password;

	/* 所属公司名称 */
	private String companyName;

	/* 邮箱 */
	private String email;

	/* 手机 */
	private String phone;

	/* 是否禁用 */
	private Boolean disable;

	/* 描述 */
	private String memo;

	/* 创建时间 */
	private Date createDate;

	/* 更新时间 */
	private Date updateDate;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public Integer getCompany() {
		return company;
	}

	public void setCompany(Integer company) {
		this.company = company;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Boolean getDisable() {
		return disable;
	}

	public void setDisable(Boolean disable) {
		this.disable = disable;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	@Override
	public String toString() {
		return "{username : " + username + " , nickname : " + nickname + " , company : " + company + " , password : "
				+ password + " , companyName : " + companyName + " , email : " + email + " , phone : " + phone
				+ " , disable : " + disable + " , memo : " + memo + " , createDate : " + createDate + " , updateDate : "
				+ updateDate + " }";
	}
	
	public String security() {
		String security = "USER:"  + this.username;
		this.password = null;
		return security;
	}
}
